package demo2;

import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-09-06
 * Time: 18:50
 */
public class Test {
    public static void main(String[] args) {
        MyList myList = new MyList();
        myList.addLast(11);
        myList.addLast(22);
        myList.addLast(33);
        myList.display();
    }


    public static void main1(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        System.out.println(myStack.peek());
        myStack.pop();
        System.out.println(myStack.peek());
    }
}
